/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const orgRouter = {
    path: '/org',
    component: Layout,
    redirect: 'noredirect',
    name: 'organ',
    meta: {
        title: '组织管理',
        icon: 'peoples',
        guid: '19d8ae38-dbd5-4ca1-8334-0879342bdd3e',
        roles: ['admin']
    },
    children: [{
        path: 'team_members',
        component: () =>
            import ('@/views/org/team_members'),
        name: 'teamMembers',
        meta: {
            title: '组员管理',
            icon: 'peoples',
            guid: '018a6dba-9559-432c-b7fb-a23806a44786',
            roles: ['admin']
        }
    }, {
        path: 'department',
        component: () =>
            import ('@/views/org/department'),
        name: 'department',
        meta: {
            title: '部门管理',
            icon: 'peoples',
            guid: '7f92a879-2790-47ff-b267-b559f5203669',
            roles: ['admin']
        }
    }, {
        path: 'device',
        component: () =>
            import ('@/views/org/device'),
        name: 'device',
        meta: {
            title: '设备管理',
            icon: 'peoples',
            guid: 'b194492b-0d98-4205-b8c1-4840b1403fab',
            roles: ['admin']
        }
    }]
}

export default orgRouter